package com.atguigu.vod.service;

import com.atguigu.commonutils.R;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.ArrayList;

public interface VodService {
    /*实现视频上传功能*/
    R testUploadVideo(MultipartFile multipartFile) throws IOException;

    /*根据视频id删除阿里云里面的视频*/
    boolean removeAliVideo(String videoId);

    /*根据ids删除阿里云里面的多个视频*/
    boolean removeAliVideos(ArrayList<String> videoIds);

    /*根据视频id获取视频播放凭证，传递给前端播放视频*/
    R getPlayAuth(String videoSourceId);
}
